//
//  TextureFrame.h
//  Prism
//
//  Created by Bas du Pre on 26-05-11.
//  Copyright 2011 UU. All rights reserved.
//

#pragma once

#include "../global.h"

#include "Texture.h"
#include "../Events.h"

namespace Prism {
namespace Graphics {
    
    class Texture;
    
    class TextureFrame : public PObject {
    public:
        TextureFrame();
        TextureFrame(Texture *texture, Rect rect);
        virtual ~TextureFrame();
        
        void setTexture(Texture *texture);
        Texture *texture();
        void setRect(Rect rect);
        Rect rect();
        
        virtual String toString();
        
        Event<EventArgs*> onChanged;
        
    protected:
        Texture *_texture;
        Rect _rect;
        
    public:
        //#if PRISM_OS_IOS
        //#include "iOS/ios_Texture.h"
        //#endif
        
    };
}
}
